<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
<title>我的</title>
<link rel="stylesheet" href="<?php echo $_BASE_DIR ?>baodannew/css/common.css" >
<link rel="stylesheet" href="<?php echo $_BASE_DIR ?>baodannew/css/my.css" >
<link rel="stylesheet" href="<?php echo $_BASE_DIR ?>baodannew/css/footer.css" >
</head>

<body>
<div class="user-info">
          <?php $avtar = $_BASE_DIR.'baodannew/images/avatar-img.jpg';
                     if($user->avatar) $avtar = $user->avatar;
                   
                    ?>
	<div class="left-avatar"><a href="/baodan/editinfo" ><img src="<?php echo $avtar ?>" /></a></div>
	<div class="right-info">
		 <div class="clearfix user-name"><p><?php echo $user->realname?></p><span>[<?php echo Acctuser::getlevelname($user->level)?>]</span></div>
		 <div class="clearfix user-phone"><p><?php echo $user->acctname?></p></div>
		 <div class="clearfix recommand-name">
		       <div class="reco-item1 fl"><span>积分</span><p><?php echo $user->balance?></p></div>
			   <a href="/my/withdraw"><div class="reco-item3 fl">积分提现</div></a>
		 </div>
	</div>
</div>


<div class="edge-dist">
     <ul class="function-list clearfix">

     	  	 <a href="/baodan/contactus">
    	     <li class="clearfix">
				 <img src="<?php echo $_BASE_DIR ?>baodan/images/kefu.png" />
				 <p>平台客服</p>
     	     </li>
     	 </a>
     	   <?php if($user->is_bd == 1 && $user->bd_status == 0){?>
     	 <a href="/my/keys">
    	     <li class="clearfix">
				 <img src="<?php echo $_BASE_DIR ?>baodannew/images/ic_my_key_managment.png" />
				 <p>激活码管理</p>
     	     </li>
     	 </a>
     	 
     	 <a href="/my/bdlog">
    	     <li class="clearfix">
				 <img src="<?php echo $_BASE_DIR ?>baodannew/images/ic_my_record.png" />
				 <p>报单记录</p>
     	     </li>
     	 </a>
     	 <?php }else if($user->bd_status == -1){?>
     	      	 <a href="javascript:void(0)" >
    	     <li class="clearfix">
				 <img src="<?php echo $_BASE_DIR ?>baodannew/images/ic_my_key_managment.png" />
				 <p>报单中心申请中</p>
     	     </li>
     	 </a>
     	 <?php }else{?>
     	           	 <a href="/baodan/applybd">
    	     <li class="clearfix">
				 <img src="<?php echo $_BASE_DIR ?>baodannew/images/ic_my_key_managment.png" />
				 <p>申请报单中心</p>
     	     </li>
     	 </a>
     	<?php  }?>
     	 <a href="/my/pointlog">
    	     <li class="clearfix">
				 <img src="<?php echo $_BASE_DIR ?>baodannew/images/ic_my_point.png" />
				 <p>积分明细</p>
     	     </li>
     	 </a>

     	 <a href="/my/activecode">
    	     <li class="clearfix">
				 <img src="<?php echo $_BASE_DIR ?>baodannew/images/ic_my_my_key.png" />
				 <p>我的激活码</p>
     	     </li>
     	 </a>
     	 
     	 <a href="/my/team">
    	     <li class="clearfix">
				 <img src="<?php echo $_BASE_DIR ?>baodannew/images/ic_my_myteam.png" />
				 <p>我的团队</p>
     	     </li>
     	 </a>
     	 <a href="/my/bindaccount">
    	     <li class="clearfix">
				 <img src="<?php echo $_BASE_DIR ?>baodannew/images/ic_my_binding.png" />
				 <p>绑定提现账户</p>
     	     </li>
     	 </a>
     	      	      	 <a href="/my/withdrawlog">
    	     <li class="clearfix">
				 <img src="<?php echo $_BASE_DIR ?>baodan/images/tixian.png" />
				 <p>提现记录</p>
     	     </li>
     	 </a>
     	 <a href="/my/share">
    	     <li class="clearfix">
				 <img src="<?php echo $_BASE_DIR ?>baodannew/images/ic_my_invite.png" />
				 <p>邀请好友</p>
     	     </li>
     	 </a>
     	 <a href="https://fir.im/2xqu">
    	     <li class="clearfix">
				 <img src="<?php echo $_BASE_DIR ?>baodannew/images/ic_my_download.png" />
				 <p>下载APP</p>
     	     </li>
     	 </a>
     	    
     	 <a href="/baodan/loginout">
    	     <li class="clearfix">
				 <img src="<?php echo $_BASE_DIR ?>baodannew/images/ic_my_exit.png" />
				 <p>退出登录</p>
     	     </li>
     	 </a>

     </ul>
</div>



<div style="height:60px;"></div>
<div class="footer">
	<ul class="bottom clearfix">
		  <li class="fb_btn">  <a href="/baodan/home"><span class="tab_icon newsicon"></span><span class="tabtext">主页</span></a></li>
			<li class="fb_btn active"><a href="/baodan/index"><span class="tab_icon myicon"></span><span class="tabtext">我的</span></a></li>
	</ul>
</div>

<script type="text/javascript" src="<?php echo $_BASE_DIR ?>baodan/js/jquery-3.1.1.min.js"></script>
<script>
	$(function(){
        $(".bottom li").click(function(){
            var _this = $(this);
            var _thisId = _this.attr('id');
            $(".bottom li").removeClass('active');
            _this.addClass('active');
        })
    });
    function apply(){
    	var ajaxurl = "/baodan/apply";
    	$.post(ajaxurl, {
    		uid:1
    	}, function(data){
    		if(data.status == 0){
    			alert(data.msg);
    			location.reload();
    			
    		}else{
    			alert(data.msg);
    			return false;	
    		}
    	}, 'json');
     }

</script>
</body>
</html>
